<template>
	<view>
		<!-- 轮播图 -->
		<view class="nav in">
			<swiper class="banner " :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000">
				<swiper-item>
					<view class="swiper-item">
						<image src="../..//static/shop/1595833354066324005.jpg" mode=""></image>
					</view>
				</swiper-item>
				<swiper-item>
					<view class="swiper-item">
						<image src="../../static/shop/1595833443068049276.jpg" mode=""></image>
					</view>
				</swiper-item>
			</swiper>
		</view>
		<!-- 内容 -->
		<view class="main">
			<view class="msg">
				<!-- 标题 -->
				<view class="name">
					日常家居保洁
				</view>
				<view class="money">
					<view class="money1">
						<text class="span">
							￥149
						</text> 起
					</view>
					<!-- 成交 -->

					成交1489单
				</view>
			</view>
			<!--  -->
			<view class="row">
				<scroll-view scroll-x="true">
					<view class="item show">
						<view class="">
							日常家居保洁2小时
						</view>
						<view class="money">
							¥149 <text>起</text>
						</view>
					</view>
					<view class="item">
						<view class="">
							日常家居保洁2小时
						</view>
						<view class="money">
							¥149 <text>起</text>
						</view>
					</view>
					<view class="item">
						<view class="">
							日常家居保洁2小时
						</view>
						<view class="money">
							¥149 <text>起</text>
						</view>
					</view>
				</scroll-view>
			</view>
			<!-- 推荐理由 -->
			<view class="text">
				<view class="txt">
					推荐理由：准时上门,提前联系,服务态度好。大姐做事靠谱,还有佩戴口罩，鞋套，专业工具全有...
					推荐理由：准时上门,提前联系,服务态度好。大姐做事靠谱,还有佩戴口罩，鞋套，专业工具全有...
						<image src="../../static/icon/iconRight.png" mode=""></image>
				</view>
				<view class="row">
					<view class="star">
						<star></star>
					</view>
					<view class="">
						推荐8分
					</view>
				</view>
			</view>
			<!-- 标签 -->
			<view class="tag in ">
				<view class="list">
					<image src="../../static/Home/icon_2.png" mode=""></image>
					官方自营
				</view>
				<view class="list">
					<image src="../../static/Home/icon_2.png" mode=""></image>
					专业培训
				</view>
				<view class="list">
					<image src="../../static/Home/icon_2.png" mode=""></image>
					平台监管
				</view>
			</view>
			<!--  服务内容   费用说明 -->
			<view class="row1">
				<view class="list show">
					服务内容
				</view>
				<view class="list">
				费用说明
				</view>
				<view class="list">
					用户评价
				</view>
				<view class="list">
					常用问题
				</view>
			</view>
			<!-- 图片 -->
			<view class="row2">
				<image class="image" src="../../static/shop/1595833524878383141.jpg" mode=""></image>
				<image  class="image1"  src="../../static/head.jpg" mode=""></image>
			</view>
			<!--立即预约 -->
			<view class="btn" @click="router">
				立刻预约
			</view>
		</view>
	</view>
</template>

<script>
	import star from '../../components/homeStar/homeStar.vue'
	export default {
		components:{
			star
		},
		data() {
			return {

			};
		},
		methods:{
			router(){
				uni.navigateTo({
					url:'../make/make'
				})
			}
		}
	}
</script>

<style lang="scss">
	.nav {

		.banner {
			height: 300rpx;
			width: 100%;

			.swiper-item {

				image {
					width: 100%;
					height: 300rpx;
				}
			}
		}
	}

	.main {
		padding: 40rpx;

		.msg {

			.name {
				font-size: 28rpx;

			}

			.money {
				display: flex;
				color: #999;
				margin: 30rpx 0;

				.money1 {
					margin-right: 10rpx;
				}

				.span {
					color: #FFA911;
				}
			}
		}

		.row {
			scroll-view {
				width: 100%;
				white-space: nowrap;
				height: 180rpx;
			}

			.item {
				display: inline-block;
				margin-right: 20rpx;
				text-align: center;
				border: 2rpx solid #E5E5E5;
				border-radius: 10rpx;
				padding: 10rpx;

				.money {
					color: #F29100;
					margin-top: 10rpx;

					text {
						color: #999;
					}
				}
			}

			.show {
				border: 2rpx solid #F29100;
			}

		}

		.text {
		
			padding: 20rpx;
			background-color: rgba(245, 245, 245, 100);
			border-radius: 8rpx;
			color: rgba(102, 102, 102, 100);
			font-size: 28rpx;
			text-align: left;
			font-family: PingFangSC-regular;
			padding: 10rpx;
			.txt{
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 2;
				width: 317px;
				height: 40px;
				line-height: 40rpx;
				display: flex;
				image{
					margin-top: 27rpx;
					width: 50rpx;
					height: 25rpx;
					margin-left: 10rpx;
				}
			}
			.row{
				display: flex;
				justify-content: space-between;
				color: #999;
				font-size: 24rpx;
				margin-top: 20rpx;
				.star{
					
				}
			}
		}
		.tag {
			padding: 20rpx 0;
			margin-top: 30rpx;
			display: flex;
			justify-content: space-around;
			border-radius: 4px 4px 4px 4px;
			background-color: rgba(255, 255, 255, 100);
			text-align: center;
			box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.06);
			border: 1px solid rgba(229, 229, 229, 100);
			.list {
				display: flex;
			color: #0065FF;
				margin-right: 40rpx;
				font-size: 22rpx;
				image {
					margin-top: 5rpx;
					width: 25rpx;
					height: 25rpx;
				}
			}
		}
	}
	.row1{
		display: flex;
		justify-content: space-between;
		margin: 0 10rpx;
		margin-top: 20rpx;
		color: #999999;
		.show{
			font-weight: 550;
			color: rgba(51, 51, 51, 100);
			font-size: 30rpx;
			position: relative;
		}
		.show::before{
			content: '';
			position: absolute;
			bottom: 0;
			left: 0;
			right: 0;
			width: 95%;
			height: 10rpx;
			margin: auto;
			border-radius: 25rpx;
			background-color: #ff9204;
			z-index: -1;
		}
	}
	.row2{
		margin-top: 40rpx;
		.image{
			width: 100%;
			height: 400rpx;
		}
		.image1{
			margin-top: 20rpx;
			width: 100%;
			height:900rpx;
		}
	}
	.btn{
		width: 500rpx;
		height: 60rpx;
		margin: auto;
		background-color: #FF9500;
		color: #FFFFFF;
		font-size: 28rpx;
		text-align: center;
		line-height: 60rpx;
		border-radius: 10rpx;
	}
</style>
